<%@page contentType="text/html;charset=utf-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

        <title>薪酬标准管理</title>

        <link href="../../css/mine.css" type="text/css" rel="stylesheet" />
    </head>
    <body>
        <style>
            .tr_color{background-color: #9F88FF}
        </style>
        <div class="div_head">
            <span>
                <span style="float: left;">当前位置是：系统管理-》菜单管理</span>
                <span style="float: right; margin-right: 8px; font-weight: bold;">
                    <a style="text-decoration: none;" href="add.html">【添加】</a>
					<a style="text-decoration: none;" href="#">【删除】</a>
                </span>
            </span>
        </div>
        <div></div>
        <div class="div_search">
            <span>
                <form action="/resource/demo8/list" method="get">
                    菜单名称: 
					<input name="menuName" value="${menuName}" type="text"  />
					 状态: 
					<select name="menuStatus">
						<option value="1">请选择</option>
                        <option value="1" <c:if test="${menuStatus==1}">selected</c:if> >启用</option>
						<option value="0" <c:if test="${menuStatus==0}">selected</c:if>>禁用</option>
					
					</select>
                    <input value="查询" type="submit" />
					
                </form>
            </span>
        </div>
        <div style="font-size: 13px; margin: 10px 5px;">
            <table class="table_a" border="1" width="100%">
                <tbody><tr style="font-weight: bold;">
                        <td width="40px;">序号</td>
                        <td width="30px;"><input type="checkbox" /></td>						
                        <td width="80px;">菜单名称</td>
                        <td >URL</td>
						<td width="100px;">状态</td>
                        
                        <td align="center" width="100px;">操作</td>
                    </tr>
                    <c:forEach items="${pageInfo.list}" var="page" varStatus="stu">
                        <tr id="product1">
                            <td>${stu.count}</td>
                            <td><input type="checkbox" /></td>
                            <td>${page.mnueName}</td>
                            <td><a href="view.jsp">${page.mnueUrl}</a></td>
                            <c:if test="${page.mnueStatus==1}">
                                <td>启用</td>
                            </c:if>
                            <c:if test="${page.mnueStatus!=1}">
                                <td>禁用</td>
                            </c:if>
                            <td>
                                <a href="add.html">修改</a>
                                <a href="#">删除</a>
                            </td>
                        </tr>
                    </c:forEach>
                <tr>
                    <td colspan="20" style="text-align: center;">
                        <a style="text-decoration: none;" href="/resource/demo8/list?&menuName=${menuName}">首页</a>
                        <a style="text-decoration: none;" href="/resource/demo8/list?page=${pageInfo.prePage==0?1:pageInfo.prePage}&menuName=${menuName}&menuStatus=${menuStatus}"> 上一页  </a>
                        <a style="text-decoration: none;" href="/resource/demo8/list?page=${pageInfo.nextPage==0?pageInfo.pages:pageInfo.nextPage}&menuName=${menuName}&menuStatus=${menuStatus}">下一页  </a>
                        <a style="text-decoration: none;" href="/resource/demo8/list?page=${pageInfo.pages}&menuName=${menuName}"> 尾页 </a>
                        共${pageInfo.pages}页 每页显示 ${pageInfo.pageSize}/${pageInfo.total}
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </body>
</html>